package com.junqson.je.common.model;

import lombok.Getter;

/**
 * @Descriptions
 * @Company
 * @Author Junqson
 * @Date 2020/1/20 10:25
 * @Version 1.0
 */
public enum ResultEnum {


    SUCCESS(0, "success"),
    SYSTEM_ERROR(1, "system error"),
    NEED_LOGIN(2, "需要登陆"),
    NEED_AUTH(3, " 权限不足"),
    PARAM_NOT_FOUND(4, "参数缺失");

    @Getter
    private Integer code;

    @Getter
    private String msg;

    private ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
